<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/css/index.css">
    <link rel="stylesheet" href="/Public/css/foot.css">
    <link rel="stylesheet" href="/Public/css/clear.css">
    <link rel="stylesheet" href="/Public/css/phone.css">
    <link rel="stylesheet" href="/Public/css/list_phone.css">
    <link rel="stylesheet" href="/Public/css/order.css">
    <link rel="stylesheet" href="/Public/css/person.css">
    <link rel="stylesheet" href="/Public/css/s-product.css">
    <link rel="stylesheet" href="/Public/css/Settlement.css">
    <link rel="stylesheet" href="/Public/css/shopping.css">
    <script src="/Public/js/jquery-1.11.3.js"></script>
    <script src="/Public/js/animate.js"></script>
    <script>
        $(function () {
            function fun(id,child_id,att){
                var t;
                $(id).mouseover(function(){
                    clearTimeout(t);
                    $(child_id).show();
                    $(att).css('color', 'rgb(0, 187, 231)');
                }).mouseout(function(){


                    t = setTimeout(function(){
                        $(att).css('color', 'black');
                        $(child_id).css('display','none')
                    },200);
//                    t = setTimeout($(child_id).css('display','none'),30000);
//                    $(child_id).mousemove(function(){
//                        clearTimeout(t);
//                        $(child_id).show();
//                    }).mouseout(function(){
//                        setTimeout($(child_id).css('display','none'),30000);
//                    })

                })
            }
            fun("#phone,#all_phone","#all_phone","#phone a");
            fun("#computer,#all_computer","#all_computer","#computer a");
            fun("#wear,#all_wear","#all_wear","#wear a");
            fun("#capacity,#all_home","#all_home","#capacity a");
            fun("#fit,#all_fit","#all_fit","#fit a")


//            $.ajax("/index.php/Home/Index/ajax_lay",{
//                success:function(data){
//                    $('.a_car').html(data);
//                    console.log(data);
//                }
//            });
//            $('#add_car').click(function(){
//                 $.ajax("/index.php/Home/Index/ajax-lay",{
//                     success:function(data){
//                         $('.a_car').html(data);
//                }
//                 })
//            })
        });
    </script>
<body>
<div class="shortcut">
    <div class="s-min">
        <ul>
            <?php
 if(!$_SESSION['user_id']){ ?>
            <li>
                <span class="gou"></span>
                <a href="/index.php/Home/Index/shopping">购物车（0）</a>
                <!--<a href="/index.php/Home/Index/shopping" >购物车（<span class="a_car"></span>）</a>-->
            </li>
            <li style="border-right: 1px solid #DDDDDD;height: 15px; border-left: 1px solid #DDDDDD ">
                <a href="/index.php/Home/Index/order"> 我的订单 </a>
            </li>

            <li>
                <a href="/index.php/Home/Index/register.html">注册</a>
            </li>

            <li>
                <a href="/index.php/Home/Index/login.html">请登录</a>
            </li>
            <?php
 }else{ ?>
            <li>
                <span class="gou"></span>
                <a href="/index.php/Home/Index/shopping" class="a_car">购物车（<?php echo ($num); ?>）</a>
            </li>
            <li style="border-right: 1px solid #DDDDDD;height: 15px; border-left: 1px solid #DDDDDD ">
                <a href="/index.php/Home/Index/order"> 我的订单 </a>
            </li>
            <li>
                <a href="/index.php/Home/Index/loginOut">退出</a>
            </li>
            <?php
 if($UserData['gm']<2 && $UserData['gm']>=0 ){ ?>
            <li>

                <a href="/index.php/Home/backstage/backstage">去后台</a>

            </li>
            <?php
 } ?>
            <li>
                <a href="/index.php/Home/Index/person"><?php echo ($UserData["username"]); ?></a>
            </li>
            <?php
 } ?>
        </ul>
    </div>
</div>
<div style="clear: left"></div>
<div class="header">
    <div class="layout">

        <div class="left">
            <a href="/index.php/Home/Index/index">
                <img src="/Public/img/biao.png" alt="">
            </a>
        </div>
        <div class="naver">
            <ul>
                <li id="phone"><a href="/index.php/Home/Index/list_phone">手机</a></li>
                <li id="computer"><a href="/index.php/Home/Index/list_computer">平板</a></li>
                <li id="wear"><a href="/index.php/Home/Index/list_wear">穿戴</a></li>
                <li id="capacity"><a href="/index.php/Home/Index/list_capacity">智能家居</a></li>
                <li id="fit"><a href="/index.php/Home/Index/list_fit">配件</a></li>
            </ul>
            <div class="right">
                <form action="" method="post">
                    <input class="text" type="text" placeholder="荣耀9　荣耀V9 荣耀8青春版　荣耀手环3">
                    <input type="button" class="sub">
                </form>
            </div>
        </div>
    </div>
</div>
<div class="y_phone" id="all_phone">
    <div class="y_phone_box">
        <ul class="y_phone_list">
            <div>全部手机></div>
            <li><a href="">荣耀系列</a></li>
            <li><a href="">畅玩系列</a></li>
        </ul>
        <div class="clear"></div>
        <ul class="y_phone_one">
            <?php if(is_array($ryjp)): $i = 0; $__LIST__ = array_slice($ryjp,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?><li>
                    <img src="/Uploads/<?php echo ($row["image"]); ?>" class="y_phone_img">
                    <div><?php echo ($row["product_name"]); ?></div>
                    <div class="y_phone_font">￥<?php echo ($row["current_price"]); ?></div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div class="y_phone" id="all_computer">
    <div class="y_phone_box">
        <ul class="y_phone_list">
            <div>全部平板></div>
            <li><a href="">平板电脑</a></li>
        </ul>
        <div class="clear"></div>
        <ul class="y_phone_one">
            <?php if(is_array($ryjp2)): $i = 0; $__LIST__ = array_slice($ryjp2,0,5,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row2): $mod = ($i % 2 );++$i;?><li>
                    <img src="/Uploads/<?php echo ($row2["image"]); ?>" class="y_phone_img">
                    <div><?php echo ($row2["product_name"]); ?></div>
                    <div class="y_phone_font">￥<?php echo ($row2["current_price"]); ?></div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div class="y_phone" id="all_home">
    <div class="y_phone_box">
        <ul class="y_phone_list">
            <div>全部智能家居></div>
            <li><a href="">电力猫</a></li>
            <li><a href="">路由器</a></li>
            <li><a href="">电视盒子</a></li>
        </ul>
        <div class="clear"></div>
        <ul class="y_phone_one">
            <?php if(is_array($ryjp4)): $i = 0; $__LIST__ = array_slice($ryjp4,0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row4): $mod = ($i % 2 );++$i;?><li>
                    <img src="/Uploads/<?php echo ($row4["image"]); ?>" class="y_phone_img">
                    <div><?php echo ($row4["product_name"]); ?></div>
                    <div class="y_phone_font">￥<?php echo ($row4["current_price"]); ?></div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div class="y_phone" id="all_wear">
    <div class="y_phone_box">
        <ul class="y_phone_list">
            <div>全部穿戴></div>
            <li><a href="">手表 / 手环</a></li>
        </ul>
        <div class="clear"></div>
        <ul class="y_phone_one">
            <?php if(is_array($ryjp3)): $i = 0; $__LIST__ = array_slice($ryjp3,0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row3): $mod = ($i % 2 );++$i;?><li>
                    <img src="/Uploads/<?php echo ($row3["image"]); ?>" class="y_phone_img">
                    <div><?php echo ($row3["product_name"]); ?></div>
                    <div class="y_phone_font">￥<?php echo ($row3["current_price"]); ?></div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div class="y_phone" id="all_fit">
    <div class="y_phone_box">
        <ul class="y_phone_list">
            <div>全部配件></div>
            <li><a href="">贴膜</a></li>
            <li><a href="">保护壳</a></li>
            <li><a href="">保护膜</a></li>
            <li><a href="">盒子专属配件</a></li>
            <li><a href="">表带</a></li>
            <li><a href="">耳机</a></li>
            <li><a href="">音箱</a></li>
            <li><a href="">电源/充电器/线材</a></li>
            <li><a href="">自拍杆/器</a></li>
        </ul>
        <div class="clear"></div>
        <ul class="y_phone_one">
            <?php if(is_array($ryjp5)): $i = 0; $__LIST__ = array_slice($ryjp5,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row5): $mod = ($i % 2 );++$i;?><li>
                    <img src="/Uploads/<?php echo ($row5["image"]); ?>" class="y_phone_img">
                    <div><?php echo ($row5["product_name"]); ?></div>
                    <div class="y_phone_font">￥<?php echo ($row5["current_price"]); ?></div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>





<div id="box">
    <div id="f">
        <ul id="pic">
            <li>
                <a href="#"><img src="/Public/img/20171110220747516.jpg" width="100%" height="448px"></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/2.jpg" width="100%" height="448px"></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/3.jpg" width="100%" height="448px"></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/4.jpg" width="100%" height="448px"></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/5.jpg" width="100%" height=448px"></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/6.jpg" width="100%" height="448px"></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/7.jpg" width="100%" height="448px"></a>
            </li>
        </ul>
        <div class="navbg"></div>
        <ul id="nav">
            <li id="n1"></li>
            <li id="n2"></li>
            <li id="n3"></li>
            <li id="n4"></li>
            <li id="n5"></li>
            <li id="n6"></li>
            <li id="n7"></li>
        </ul>
    </div>
</div>
<h1 id="test"></h1>
<script src="/Public/js/flash.js" type="text/javascript"></script>


<div class="content">
    <div class="h">
        <h2>荣耀精品</h2>
    </div>
    <div class="good-list">
        <ul>
            <?php if(is_array($ryjp)): $i = 0; $__LIST__ = array_slice($ryjp,0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?><li style="border-top-left-radius: 5px; border-bottom-left-radius: 5px">
                    <a href="/index.php/Home/Index/product?id=<?php echo ($row["id"]); ?>">
                        <p>
                            <img src="/Uploads/<?php echo ($row["image"]); ?>" style="width: 200px;height: 200px">
                        </p>
                        <div class="grid-title"><?php echo ($row["product_name"]); ?></div>
                        <div class="gril-desc"><?php echo ($row["product_info"]); ?></div>
                        <div class="grid-price"><?php echo ($row["current_price"]); ?></div>
                    </a>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
    <div style="clear: left"></div>
    <div class="shou">
        <ul>
            <li>
                <a href="#"><img src="/Public/img/v8-1.jpg" width="373" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/6x.jpg" width="373" alt=""></a>
            </li>
            <li>
                <a href="#"><img src="/Public/img/手环3.jpg" width="373" alt=""></a>
            </li>
        </ul>
    </div>
</div>
<div class="content2">
    <div class="h">
        <h2>手机
            <span>
                <a href="">荣耀系列</a>
                <a href="">畅玩系列</a>
                <a href="">合约机</a>
            </span>
            <div class="fr">
                <a href="">更多
                    <div class="fr-biao"></div>
                </a>
            </div>
        </h2>
    </div>
    <div class="good-list2">
        <ul>
            <li>
                <a href="">
                    <img src="/Public/img/2-1.jpg" alt="">
                </a>
            </li>
        </ul>
    </div>
    <div class="shou2">
        <ul>
            <?php if(is_array($ryjp)): $i = 0; $__LIST__ = array_slice($ryjp,0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?><li style="margin-bottom: 20px;">
                    <a href="/index.php/Home/Index/product?id=<?php echo ($row["id"]); ?>">
                        <img src="/Uploads/<?php echo ($row["image"]); ?>" width="150" height="150">
                        <div class="b-zhen">
                            <h3><?php echo ($row["product_name"]); ?></h3>
                            <div><?php echo ($row["product_info"]); ?></div>
                            <p style="margin-top: 10px;">¥<?php echo ($row["current_price"]); ?></p>
                        </div>
                    </a>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div class="content3">
    <div class="h">
        <h2>智能家居
            <span>
                <a href="">路由器</a>
                <a href="">电视盒子</a>
                <a href="">电力猫</a>
            </span>
            <div class="fr">
                <a href="">更多
                    <div class="fr-biao"></div>
                </a>

            </div>
        </h2>
    </div>
    <div class="good-list3">
        <ul>
            <li>
                <a href="">
                    <div class="www"></div>
                    <img src="/Public/img/3-1.jpg" alt="">
                </a>
            </li>
        </ul>
    </div>
    <div class="shou3">
        <ul>
            <li class="shou3-left">
                <a href="/index.php/Home/Index/product?id=<?php echo ($row["id"]); ?>">
                    <img src="/Public/img/3-2.png" alt="">

                    <div class="grid-info">
                        <h3>荣耀盒子Pro</h3>
                        <p>￥799</p>
                    </div>
                </a>
            </li>
            <li class="shou3-left">
                <a href="/index.php/Home/Index/product?id=<?php echo ($row4["id"]); ?>">
                    <img src="/Public/img/3-3.jpg" alt="">
                    <img class="ding" src="/Public/img/jiayige.png" alt="">
                    <div class="grid-info">
                        <h3>荣耀路由器2</h3>
                        <p>￥249</p>
                    </div>
                </a>
            </li>
            <?php if(is_array($ryjp4)): $i = 0; $__LIST__ = array_slice($ryjp4,0,3,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row4): $mod = ($i % 2 );++$i;?><li class="shou3-bottom" style="margin-top: 20px">
                    <a href="/index.php/Home/Index/product?id=<?php echo ($row4["id"]); ?>">
                        <img src="/Uploads/<?php echo ($row4["image"]); ?>" width="150" height="150">
                        <div class="grid-title"><?php echo ($row4["product_name"]); ?></div>
                        <div class="gril-desc"><?php echo ($row4["product_info"]); ?></div>
                        <div class="grid-price">￥<?php echo ($row4["current_price"]); ?></div>
                    </a>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div class="content3">
    <div class="h">
        <h2>热销配件
            <span>
                <a href="">贴膜</a>
                <a href="">保护壳</a>
                <a href="">保护套</a>
                <a href="">盒子专属配件</a>
                <a href="">表带</a>
                <a href="">耳机</a>
                <a href="">音箱</a>
                <a href="">电源/充电器/线材</a>
                <a href="">自拍杆</a>
            </span>
            <div class="fr">
                <a href="/index.php/Home/Index/list_fit">更多
                    <div class="fr-biao"></div>
                </a>

            </div>
        </h2>
    </div>
    <div class="good-list3">
        <ul>
            <li>
                <a href="">
                    <div class="www"></div>
                    <img src="/Public/img/4-1.jpg" alt="">
                </a>
            </li>
        </ul>
    </div>
    <div class="shou3">
        <ul>
            <li class="shou3-left">
                <a href="">
                    <img src="/Public/img/4-2.jpg">
                    <div class="grid-info">
                        <h3>荣耀脂肪称</h3>
                        <p>￥199</p>
                    </div>
                </a>
            </li>
            <li class="shou3-left">
                <a href="">
                    <img src="/Public/img/4-3.jpg" alt="">
                    <img class="ding" src="/Public/img/jiayige.png">
                    <div class="grid-info">
                        <h3>荣耀探空精灵</h3>
                        <p>￥599</p>
                    </div>
                </a>
            </li>
            <?php if(is_array($ryjp5)): $i = 0; $__LIST__ = array_slice($ryjp5,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row5): $mod = ($i % 2 );++$i;?><li class="shou3-bottom" style="margin-top: 20px">
                    <a href="/index.php/Home/Index/product?id=<?php echo ($row5["id"]); ?>">
                        <img src="/Uploads/<?php echo ($row5["image"]); ?>" width="150" height="150">
                        <div class="grid-title"><?php echo ($row5["product_name"]); ?></div>
                        <div class="gril-desc"><?php echo ($row5["product_info"]); ?></div>
                        <div class="grid-price"><?php echo ($row5["current_price"]); ?></div>
                    </a>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>


<!--  底部-->

<div class="y_footer">
    <ul class="y_box">

        <li class="y_foot_one">
            <div class="y_icon y_foot_img1"></div>
            <span>百强企业 品质保证</span>
        </li>


        <li class="y_foot">
            <div class="y_icon y_foot_img2"></div>
            <span>7天退货 15天换货</span>
        </li>


        <li class="y_foot">
            <div class="y_icon y_foot_img3"></div>
            <span>18元起免运费</span>
        </li>


        <li class="y_foot">
            <div class="y_icon y_foot_img4"></div>
            <span>448家维修网点 全国联保</span>
        </li>
    </ul>
</div>
<div class="y_final">
    <div class="y_final_box">

        <ul class="y_final_1">
            <p class="y_final_line"></p>
            <h5>购物相关</h5>
            <li><a href="#">购物指南</a></li>
            <li><a href="#">配送方式</a></li>
            <li><a href="#">支付方式</a></li>
            <li><a href="#">常见问题</a></li>
        </ul>

        <ul class="y_final_left">
            <p class="y_final_line"></p>
            <h5>保修与退换货</h5>
            <li><a href="#">保修政策</a></li>
            <li><a href="#">退换货政策</a></li>
            <li><a href="#">退换货流程</a></li>
            <li><a href="#">保修状态查询</a></li>
        </ul>

        <ul class="y_final_left">
            <p class="y_final_line"></p>
            <h5>维修与技术支持</h5>
            <li><a href="#">售后网点</a></li>
            <li><a href="#">手机寄修</a></li>
            <li><a href="#">维修配件价格查询</a></li>
            <li><a href="#">上门服务</a></li>
        </ul>

        <ul class="y_final_left">
            <p class="y_final_line"></p>
            <h5>关于我们</h5>
            <li><a href="#">公司介绍</a></li>
            <li><a href="#">华为商城简介<</a></li>
            <li><a href="#">华为线下门店</a></li>
            <li><a href="#">荣耀线下门店</a></li>
            <li><a href="#">诚征精英</a></li>
        </ul>

        <ul class="y_final_left">
            <p class="y_final_line"></p>
            <h5>关注我们</h5>
            <li><a href="#">新浪微博</a></li>
            <li><a href="#">腾讯微博</a></li>
            <li><a href="#">花粉俱乐部</a></li>
        </ul>

        <ul class="y_final_left">
            <p class="y_final_line"></p>
            <h5>友情链接</h5>
            <li><a href="#">华为官网</a></li>
            <li><a href="#">华为商城手机版</a></li>
            <li><a href="#">荣耀官网</a></li>
            <li><a href="#">花粉俱乐部</a></li>
            <li><a href="#">莫塞尔商城</a></li>
        </ul>

        <ul class="y_final_left">
            <p class="y_final_line"></p>
            <h5>400-088-6888</h5>
            <li>24小时客服热线(仅收市话费)</li>
            <li class="y_final_mas">
                <div class="y_final_img1"></div>
                <h4>在线客服</h4>
            </li>
            <li class="y_final_mas">
                <div class="y_final_img2"></div>
                <h4>不良信息举报</h4>
            </li>
        </ul>
    </div>
</div>
<div class="y_bottom">
    <div class="y_bottom_box">
        <div><img src="/Public/img/flogo.png"></div>
        <ul>
            <li>隐私政策 服务协议 Copyright © 2012-2017 华为软件技术有限公司 版权所有 保留一切权利</li>
            <li>公安备案 苏公网安备32011402010009号 | 苏ICP备17040376号-6 | 增值电信业务经营许可证：苏B2-20130048号|</li>
            <li>网络文化经营许可证：苏网文[2015] 1599-026号</li>
        </ul>
    </div>

</div>


</body>
</html>